package com.hankol.material.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.io.Serializable;
import java.util.List;

/**
 * @author 关忆北丶
 * @description:
 * @date :2021/6/21 14:05
 */
public class MaterialCatalogueBean implements Parcelable {
    /**
         * id : 25
         * type : 2
         * title : 小明的酒窖
         * pid : 4
         * ctime : 1623901476276
         * utime : 1623901476276
         */

        private int id;
        private int type;
        private String title;
        private int pid;
        private long ctime;
        private long utime;

    public MaterialCatalogueBean() {
    }

    protected MaterialCatalogueBean(Parcel in) {
        id = in.readInt();
        type = in.readInt();
        title = in.readString();
        pid = in.readInt();
        ctime = in.readLong();
        utime = in.readLong();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(id);
        dest.writeInt(type);
        dest.writeString(title);
        dest.writeInt(pid);
        dest.writeLong(ctime);
        dest.writeLong(utime);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<MaterialCatalogueBean> CREATOR = new Creator<MaterialCatalogueBean>() {
        @Override
        public MaterialCatalogueBean createFromParcel(Parcel in) {
            return new MaterialCatalogueBean(in);
        }

        @Override
        public MaterialCatalogueBean[] newArray(int size) {
            return new MaterialCatalogueBean[size];
        }
    };

    public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public int getPid() {
            return pid;
        }

        public void setPid(int pid) {
            this.pid = pid;
        }

        public long getCtime() {
            return ctime;
        }

        public void setCtime(long ctime) {
            this.ctime = ctime;
        }

        public long getUtime() {
            return utime;
        }

        public void setUtime(long utime) {
            this.utime = utime;
        }
}
